<%-- 
    Document   : ListUpload
    Created on : 2014/8/14, 下午 03:20:25
    Author     : gjun
--%>

<%@page import="java.io.File"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path = application.getRealPath("/upload");
    File dir = new File(path);
    File ary[]=dir.listFiles();
    %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
    for(File f:ary){
              
        if( f.isFile()){
        %>
       
        
      <img src="upload/<%= f.getName() %>" >
        
        
        <%
        }
        
    }
        %>
    </body>
</html>